package com.atguigu.lease.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

@Getter
@Schema(description = "公寓房间型枚举类")
public enum ItemType implements BaseEnum{

    APPARTMENT(1,"公寓"),
    ROOM(2,"房间");

    @JsonValue
    @EnumValue
    private Integer code;
    private String name;

    ItemType(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
